//
//  MyTradingRecordCell.m
//  MRBang
//
//  Created by 铅笔 on 16/4/20.
//  Copyright © 2016年 杭州易网新科技. All rights reserved.
//

#import "MyTradingRecordCell.h"

@interface MyTradingRecordCell ()

@property (nonatomic,strong) UILabel *label_detail;//状态

@property (nonatomic,strong) UILabel *label_status;//状态

@end

@implementation MyTradingRecordCell


- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initWithMyTradingRecordCellSubviews];
    }
    return self;
}

- (void) initWithMyTradingRecordCellSubviews
{
    //detail
    self.label_detail = [[UILabel alloc] initWithFrame:CGRectMake(30*PROPORTION_WIDTH, 30*PROPORTION_WIDTH, kScreenWidth-30*PROPORTION_WIDTH*2, 30*PROPORTION_WIDTH)];
    [self addSubview:self.self.label_detail];
    self.label_detail.font = [UIFont systemFontOfSize:24*PROPORTION_WIDTH];
    self.label_detail.textColor = [BaseViewController colorWithHexString:@"#666666"];
    
    //uilabel
    self.label_status =  [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth-130*PROPORTION_WIDTH, self.label_detail.y-3, 130*PROPORTION_WIDTH,20*2*PROPORTION_WIDTH)];
    [self addSubview:self.label_status];
    self.label_status.font = [UIFont systemFontOfSize:22*PROPORTION_WIDTH];

}

/**
 *提现明细 赋值
 */
- (void) initWithRechargeMentionDetailsModel:(RechargeMentionDetailsModel *)modelValue
{
//    self.label_detail.text = [NSString stringWithFormat:@"金额:%@    提现    －:%@",modelValue.prince,modelValue.period,modelValue.poundage];
    
     self.label_detail.text = [NSString stringWithFormat:@"    提现         - %@",modelValue.amount];
    
    if ([modelValue.stat intValue] == 1) {
        //0 审核中 1已打款
        self.label_status.text = @"已打款";

    }
    else
    {
        self.label_status.text = @"审核中";
    }

}

//- (void) layoutSubviews
//{
//
//    self.label_detail.text = @"04/05       充值       ＋15000.00";
//
//}


@end
